import request from '@/utils/request'

// 查询课程资源-章节关联列表
export function listCourseCurriculumChapter(query) {
  return request({
    url: '/project/courseCurriculumChapter/list',
    method: 'get',
    params: query
  })
}

// 查询课程资源-章节关联详细
export function getCourseCurriculumChapter(id) {
  return request({
    url: '/project/courseCurriculumChapter/' + id,
    method: 'get'
  })
}

// 新增课程资源-章节关联
export function addCourseCurriculumChapter(data) {
  return request({
    url: '/project/courseCurriculumChapter',
    method: 'post',
    data: data
  })
}

// 修改课程资源-章节关联
export function updateCourseCurriculumChapter(data) {
  return request({
    url: '/project/courseCurriculumChapter',
    method: 'put',
    data: data
  })
}

// 删除课程资源-章节关联
export function delCourseCurriculumChapter(id) {
  return request({
    url: '/project/courseCurriculumChapter/' + id,
    method: 'delete'
  })
}
